home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
graphics
/
spoflt26.lzh
/
SPOFLT21.DOC
< prev
next >
Wrap
Text File
|
1993-05-25
|
12KB
|
261 lines
S P E E D O F L I G H T
Version 2.1 Released March 12, 1993.
High speed GIF (87a) viewer.
All coding and design by Stuart Denman.
Email: stusoft@u.washington.edu
THIS PROGRAM IS SHAREWARE!!!
Version 2.1 runs (and is fully tested) on all standard ST/STE/MEGA/TT
computers, and even the new FALCON030! It supports the Falcon's new
resolutions as well as its extended palette. Speed of Light is able
to increase this to 16 million, however! =) I have added several new
features, and a lot of bug-fixes to version 2.1, including making it
now run on older STs without 2 bombs (sorry about that), so please
read the changes at the end of this manual. This program MIGHT not
work with graphics cards or other non-standard video screens because
of the fast customized routines.
If you use this program regularly, please send $20 (U.S. funds if possible) to:
STUART DENMAN
1751 N.E. NAOMI PLACE
SEATTLE, WA 98115 USA
(Please see the enclosed README!.1ST file for information on address changes).
Don't forget a return address!!
When a later version comes out that will allow high speed dithering,
the ability to display and save various formats, and the ability to
enlarge as well as reduce (to name a few), I will send all registered
users a KEY CODE so you can access these new features in version 3.0.
If this isn't enough incentive to support the program, I also need the
money! This way I can continue to produce quality programs such as
this with the latest software development tools.
WHAT'S THE DIFFERENCE BETWEEN SPEED OF LIGHT AND OTHER VIEWERS?
Speed of Light is not only the fastest GIF uncompressor know to the
Atari world, but it also displays more than the normal 16 colors in
any 16 color resolution on an ST/STE/TT, including TT Medium! It
supports 256 color modes as well and uses a flickering method (which
is hardly noticable) to increase the palette to tens of thousands of
colors on the STE/TT. On regular ST's, you get the extended palette
of an STE/TT and more. On the FALCON, 16 million+ is also possible.
This would not look very good if it wasn't for a sophisticated
algorithm which compares all the colors and comes up with the
combination that looks the best. This uses a technique I call color
vector distancing, which I will not get into here. Normal GIF viewers
produce renderings of the original that lack interresing
colors...there's no contrast between them. With color distancing,
Speed of Light chooses the colors that are a set distance appart
(chosen at the options screen) and displays only them (from the most
popular color in the picture on down). This distance value or Color
Contrast ranges from 0 to 255. The best values depend on the number
of colors and shades that your computer can display. The default
values are ones which I've found produces a good picture with most
GIFs, but experimentation does help to get the best rendering for a
particular GIF. The main program was written in GFA Basic, but
whenever a lot of speed was required, I wrote those routines in pure
Assembly Language.
RUNNING THE PROGRAM
Double click or drag a GIF file to SPOFLT21.PRG. If you drag a
picture to SPOFLT21.PRG, make sure that it is either installed as an
application with "Full path" and "Default directory=Application"
highlighted. Either that or highlight these options on the "Desktop
Configuration" screen on later TOS versions. If you do not do this,
the program will not be able to find the GIF file, or SPOFLT21.RSC.
A box should pop up giving the credits and shareware information.
Click or press any key to continue. If you did not drag a GIF file to
SPOFLT21.PRG to run it, the program will display a fileselect box for
you to select the GIF file to display. Next it will load and
uncompress the picture.
If the picture is too large for the available memory, you may get
a dialog box allowing you to specify what part of the picture to load
in. You have the option to either cut out certain lines (reduce), or
load in only a section of the picture. To reduce it, select the
amount of reduction on both axes of the picture and click on REDUCE.
If this is not enough reduction to fit the whole picture into memory,
the program will warn you with an alert box. If you want to view just
a section of the picture, move the slider with the percentage of the
picture that will fit into memory on it. This determines what section
(along the Y-axis) that you want to see. Then click on SECTION. If
you want to load a New File or Quit instead, click on those buttons.
THE OPTIONS SCREEN
The options screen will appear with the name of the GIF file as well
as its dimentions and color/palette numbers. The first decision is
whether you want to display the picture in color or in greyscale.
It must, of course, be a color picture for anything to look right
with the color display option. Greyscale GIFs may look better with
the greyscale option than with the color option. Click on COLOR or
GREYSCALE to select how it will be displayed.
The two slider bars next to these buttons determine the offset
from the normal red/green/blue values that the final picture will
have. For greyscale, this allows you to make bluescale, greenscale,
or whatever. For color, you can add or subtract red/green/blue to the
original picture colors. You can brighten or darken the picture in
either display mode by adjusting the red/green/blue sliders by the
same amount. These sliders will NOT be reset to zero each time you
load a new GIF, only when you first run the program. You can easily
reset these values to zero by clicking on the red arrow in the center
above these sliders.
The color functions only affect color displays. The COLOR
CONTRAST slider effects the distancing between the colors as descibed
in a previous paragraph. The FLICKER CONTRAST limits the colors that
the program chooses to flicker with. This sets the maximum contrast
between two colors that are flickered. Flicker Contrast ranges from 0
to 255, 0 being no flickering at all, and 255 being high flickering.
Speed of Light only flickers the colors if it finds that it may
improve the picture.
The two buttons under these sliders determine the method the
program uses to reduce the colors. This makes no difference if the
number of colors in the GIF is the same as can be displayed on screen
at one time. The FREQUENCY method chooses the colors that are the
most frequent in the picture, and then distances them as determined
with the Color Contrast slider. One could notice that if you use this
method and set Color and Frequency Contrast to their lowest values,
the picture will look exactly like those of other GIF viewers. It is
Color Contrasting that makes the difference in Speed of Light.
PALETTE reduction method is similar to Frequency method, but is a lot
slower and usually produces WORSE results. It chooses its colors by
comparing them within the palette itself, and not by which is the most
frequent in the picture.
The next section allows you to set the size of the picture that
will be displayed. The sliders determine the amount of reduction
along the X and Y axes of the picture. A value of 1 will not cut the
picture at all. 2 will display every second line, 3 every third line,
and so on. This allows you to fit a huge picture on a small screen
like ST Low resolution.
AVERAGING can be used if the reduction is 2 or greater on either
axis. This can be slow (especially with color), but it produces the
most accurate results when reducing a picture. It will smooth out
jagged edges (otherwise know as stair-steps) and takes into account
the lines that are skipped when averaging is off.
DISPLAYING THE PICTURE
Click on QUIT to exit the program or NEW FILE to select a new GIF to
display. To show the current picture, click on DISPLAY.
After it calculates the colors (if in color mode) the picture
will be displayed. Flickering will not happen until it is done
drawing the picture unless "Flickerdraw" mode is on (d